#ifndef MAINDIALOG_H
#define MAINDIALOG_H

#include <BMenu>
#include <BButton>
#include <BTreeWidget>
#include <BViewer>
#include <BCamera>
#include <BScene>
#include <BSphereControl>

#include <BDialog>

using namespace BWE;

class MainDialog : public BDialog
{
public:
	MainDialog();
	~MainDialog();

protected:
	void slotImportFile();
	void slotExportFile();
	void slotResetScene();

protected:
	const char* primName(Primitive prim);

protected:
	virtual void styleEvent(const BEvent& event);

private:
	BButton*			_importButton;
	BButton*			_exportButton;
	BButton*			_resetButton;
	BTreeWidget*		_sceneTree;
	BViewer*			_viewer;
	BMenu*				_menu;

	BCamera*			_camera;
	BSphereControl*		_control;
	BScene*				_scene;

	BImageHolder		_nodeImage;
	BImageHolder		_shapeImage;
	BImageHolder		_elementImage;
};

#endif